﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CMS_GYM
{
   public class clsPhieuChiTienDTO
    {
         public decimal PhieuChiId;
        public string SoPhieuChi;
        public string KyHieu;
        public string Ky;
        public DateTime NgayXuat;
        public decimal? DoiTacId;
        public string MaDoiTac;
        public string HoTen;
        public string MaSoThue;
        public string DiaChi;
        public string NguoiNhan;
        public int PhanTramThue;
        public Double TongTienChi;
        public Double TongTienHang;
        public Double TongTienThue;
        public string GhiChu;
        public string TrangThai;
        public Boolean IsLock;
        public int NguoiTaoId;
        public DateTime NgayTao;
        public int? NguoiChinhSuaId;
        public DateTime? NgayChinhSua;

        public List<clsPhieuChiTienChiTietDTO> CacPCCT = new List<clsPhieuChiTienChiTietDTO>();

        public clsPhieuChiTienDTO()
        {
            PhieuChiId=0;
            SoPhieuChi=string.Empty;
            KyHieu=string.Empty;
            Ky=string.Empty;
            NgayXuat=new DateTime();
            DoiTacId=null;
            MaDoiTac=string.Empty;
            HoTen=string.Empty;
            MaSoThue=string.Empty;
            DiaChi=string.Empty;
            NguoiNhan = string.Empty;
            PhanTramThue=0;
            TongTienChi=0;
            TongTienHang=0;
            TongTienThue=0;
            GhiChu=string.Empty;
            TrangThai="ACTIVE";
            IsLock=false;
            NguoiTaoId=0;
            NgayTao=new DateTime();
            NguoiChinhSuaId=null;
            NgayChinhSua = null;
        }

        public clsPhieuChiTienDTO(string _SoPhieuChi, string _KyHieu, string _Ky, DateTime _NgayXuat,
                                    decimal? _DoiTacId, string _MaDoiTac, string _HoTen, string _MaSoThue, string _DiaChi, string _NguoiNhan, int _PhanTramThue,
                                    Double _TongTienChi,Double _TongTienHang,Double _TongTienThue,string _GhiChu,string _TrangThai,int _NguoiTaoId
                                )
        {
            SoPhieuChi = _SoPhieuChi;
            KyHieu = _KyHieu;
            Ky = _Ky;
            NgayXuat =_NgayXuat;
            DoiTacId =_DoiTacId;
            MaDoiTac = _MaDoiTac;
            HoTen = _HoTen;
            MaSoThue = _MaSoThue;
            DiaChi = _DiaChi;
            NguoiNhan = _NguoiNhan;
            PhanTramThue = _PhanTramThue;
            TongTienChi = _TongTienChi;
            TongTienHang = _TongTienHang;
            TongTienThue = _TongTienThue;
            GhiChu = _GhiChu;
            TrangThai = _TrangThai;
            IsLock = false;
            NguoiTaoId = _NguoiTaoId;
            NgayTao = new DateTime();
            NguoiChinhSuaId = null;
            NgayChinhSua = null;
        }
    }
}
